package com.zzt.aop.aspect;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.*;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 * Description
 * User: panda
 * Date: 2025-03-30
 * Time: 14:16
 */
@Aspect
//@Component
@Order(3)
@Slf4j
public class AspectDemo2 {

    @Pointcut("execution(* com.zzt.aop.controller.*.*(..))")
    public void pt2(){}


    @Before("pt2()")
    public void doBefore(){
        log.info("AspectDemo2 doBefore...");
    }

    @After("pt2()")
    public void doAfter(){
        log.info("AspectDemo2 doAfter...");
    }

}
